<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>编辑分组</title>
    <link th:href="@{/static/bootstrap/css/bootstrap.min.css}" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <div class="row" style="margin-top: 10px">
        <form class="col-sm-10 col-sm-offset-1" th:action="@{/group/edit}" method="post">
            <input  type="text" name="id" th:value="${group.id}" hidden="hidden"/>
            <div class="form-group">
                <label>分组名</label>
                <input class="form-control" type="text" name="name" th:value="${group.name}"/>
            </div>
            <div class="form-group">
                <label>描述</label>
                <textarea class="form-control" type="text" name="description"
                          th:text="${group.description}" rows="5"></textarea>
            </div>
            <button type="submit" class="btn btn-primary btn-block">提交</button>
        </form>
    </div>
</div>
</body>
</html>